package com.baidu.service.impl;

import com.baidu.dao.UserMapper;
import com.baidu.pojo.Exhibition;
import com.baidu.pojo.Ticket;
import com.baidu.pojo.User;
import com.baidu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> test() {
        return userMapper.test();
    }
//登录
    public User login(User user) {
        System.out.println("好难");
        return userMapper.login(user);
    }
//注册
    @Override
    public void regUser(User user) {
        userMapper.regUser(user);
    }

    @Override
    public User getUserById(Integer uid) {
        return userMapper.getUserById(uid);
    }

    @Override
    public void addUserCount(User user) {
        userMapper.addUserCount(user);
    }

    @Override
    public void updateUser(User user) {
        userMapper.updateUser(user);
    }


}
